package com.example.springboottestservice.postprocessor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * @author wuxinxin
 */
@Component
public class MyBeanFactoryPostprocessor implements BeanFactoryPostProcessor {

    public MyBeanFactoryPostprocessor() {
        System.out.println("MyBeanFactoryPostprocessor");
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        System.out.println("MyBeanFactoryPostprocessor postProcessBeanFactory");
    }
}
